package cn.dj.org.service;

import cn.dj.basic.service.BaseService;
import cn.dj.org.domain.Shop;
import cn.dj.org.domain.ShopAuditLog;
import cn.dj.org.dto.ShopDto;

import javax.mail.MessagingException;
import java.util.List;

/**
 * <p>
 *  业务接口类 - 店铺
 * </p>
 *
 * @author dj
 * @since 2023-02-04
 */
public interface IShopService extends BaseService<Shop> {
    /**
     * 店铺入驻
     * @param shop
     */
    void settlement(Shop shop);

    /**
     * 店铺审核失败
     * @param log
     */
    void auditReject(ShopAuditLog log);

    /**
     * 店铺审核成功
     * @param log
     */
    void auditPass(ShopAuditLog log) throws MessagingException;

    /**
     * 店铺的echarts报表
     * @return
     */
    List<ShopDto> echarts();

    /**
     * 店铺激活
     * @param id
     */
    void activeId(Long id);
}
